StoreEngine\Addons\Subscription\Classes\Subscription D

Total Complexity 227
Dependencies 12
Dependents 14
Total lines 1,278
Lines of code 795
Logical lines of code 446
Comment lines 281
Methods 55
Properties 3

Methods 55

Method Rating Maintainability Complexity Lines of code
can_be_updated_to()
D
34 35 85
update_status()
C
34 26 81
calculate_next_payment_date()
B
45 18 35
get_payment_count()
A
41 13 58
_get_related_orders()
A
44 11 49
get_last_order()
A
48 11 33
calculate_date()
A
48 10 33
set_payment_method()
A
51 10 27
get_related_order_ids()
A
49 8 28
payment_failed()
A
53 8 20
get_subscriptions_by_status()
S
54 5 20
set_date_prop()
S
58 5 15
status_transition()
S
51 4 25
get_subscriptions_by_order_id()
S
56 4 17
update_date()
S
58 4 15
payment_complete_for_order()
S
60 4 12
__construct()
S
44 1 54
get_related_orders()
S
59 3 16
payment_method_supports()
S
64 4 9
get_parent()
S
64 3 11
get_renewal_subscriptions()
S
55 2 22
is_manual()
S
66 3 8
read_data()
S
54 1 22
set_status()
S
69 2 7
validate_status()
S
77 2 3
get_end_date()
S
79 1 3
get_payment_duration()
S
79 1 3
get_payment_duration_type()
S
79 1 3
get_suspension_count()
S
79 1 3
get_trial()
S
79 1 3
get_trial_days()
S
79 1 3
get_start_date()
S
79 1 3
get_last_payment_date()
S
79 1 3
set_requires_manual_renewal()
S
79 1 3
get_requires_manual_renewal()
S
79 1 3
get_next_payment_date()
S
79 1 3
get_trial_end_date()
S
79 1 3
set_next_payment_date()
S
80 1 3
get_cancelled_date()
S
79 1 3
set_trial_days()
S
79 1 3
set_start_date()
S
80 1 3
set_end_date()
S
80 1 3
set_payment_duration()
S
79 1 3
set_payment_duration_type()
S
80 1 3
set_suspension_count()
S
79 1 3
set_trial()
S
79 1 3
set_trial_end_date()
S
80 1 3
set_last_payment_date()
S
80 1 3
set_initial_order_id()
S
79 1 3
set_schedule_type()
S
80 1 3
set_related_order_ids()
S
78 1 3
get_schedule_type()
S
79 1 3
get_subscription()
S
80 1 3
get_initial_order_id()
S
79 1 3
set_cancelled_date()
S
80 1 3